// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity;

import android.widget.Button;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.Toast;
import com.nnee.p_pr.p_activity.p_a.cls_p;
import com.nnee.p_pr.p_activity.p_view.cls_c;
import com.nnee.p_pr.p_atom.cls_aa;
import com.nnee.p_pr.p_atom.cls_o;
import com.nnee.p_pr.p_atom.cls_r;
import com.nnee.p_pr.p_atom.cls_u;
import com.nnee.p_pr.cls_b;
import com.nnee.p_pr.p_prot.cls_d;
import java.util.LinkedList;

// Referenced classes of package com.nnee.p_pr.p_activity:
//            CustomListViewActivity, dc

class cls_fs extends cls_b
{

	cls_fs(cls_CustomListViewActivity customlistviewactivity)
    {
        a = customlistviewactivity;
        super();
    }

    public void a()
    {
        cls_CustomListViewActivity.a(a, false);
        com.nnee.p_pr.p_activity.cls_CustomListViewActivity.o(a);
    }

    public void a(int i, int j, com.nnee.p_pr.p_atom.cls_b b1, String s, boolean flag)
    {
        if(com.nnee.p_pr.p_activity.cls_CustomListViewActivity.p(a).contains(new Integer(i)))
        {
            com.nnee.p_pr.p_activity.cls_CustomListViewActivity.p(a).remove(new Integer(i));
            com.nnee.p_pr.p_activity.cls_CustomListViewActivity.b(a, false);
            com.nnee.p_pr.p_activity.cls_CustomListViewActivity.o(a);
            cls_CustomListViewActivity.a(a, false);
            dc.a(com.nnee.p_pr.p_activity.cls_CustomListViewActivity.d(a), j);
        }
    }

    public void a(int i, com.nnee.p_pr.p_atom.cls_b b1, cls_d d1, boolean flag)
    {
        if(com.nnee.p_pr.p_activity.cls_CustomListViewActivity.p(a).contains(new Integer(i)))
        {
            com.nnee.p_pr.p_activity.cls_CustomListViewActivity.p(a).remove(new Integer(i));
            com.nnee.p_pr.p_activity.cls_CustomListViewActivity.b(a, false);
            cls_CustomListViewActivity.a(a, false);
            com.nnee.p_pr.p_activity.cls_CustomListViewActivity.o(a);
            if(cls_CustomListViewActivity.q(a) != null)
            {
                cls_CustomListViewActivity.q(a).removeFooterView(com.nnee.p_pr.p_activity.cls_CustomListViewActivity.r(a));
                if(d1 != null && d1.h != null)
                {
                    cls_CustomListViewActivity.a(a, d1, flag);
                    cls_CustomListViewActivity.a(a, d1);
                }
            }
        }
        break MISSING_BLOCK_LABEL_142;
        NullPointerException nullpointerexception;
        nullpointerexception;
        nullpointerexception.printStackTrace();
        break MISSING_BLOCK_LABEL_142;
        Exception exception;
        exception;
        throw exception;
    }

    public void b(int i, cls_d d1)
    {
        if(!com.nnee.p_pr.p_activity.cls_CustomListViewActivity.p(a).contains(new Integer(i))) goto _L2; else goto _L1
_L1:
        com.nnee.p_pr.p_activity.cls_CustomListViewActivity.p(a).remove(new Integer(i));
        if(d1.j.size() <= 0) goto _L4; else goto _L3
_L3:
        Toast.makeText(com.nnee.p_pr.p_activity.cls_CustomListViewActivity.d(a), 0x7f0a0077, 0).show();
_L2:
        if(d1.j.size() > 0) goto _L6; else goto _L5
_L4:
        if(d1.i.size() <= 0) goto _L2; else goto _L7
_L7:
        Toast.makeText(com.nnee.p_pr.p_activity.cls_CustomListViewActivity.d(a), ((r)d1.i.getFirst()).e(), 0).show();
          goto _L5
        NullPointerException nullpointerexception;
        nullpointerexception;
        nullpointerexception.printStackTrace();
          goto _L5
_L6:
        cls_c c1;
        Button button;
        ImageView imageview;
        c1 = new cls_c();
        c1.a = ((o)d1.j.getFirst()).a();
        button = (Button)CustomListViewActivity.q(a).findViewWithTag(c1);
        if(button != null)
        {
            button.setText(0x7f0a0075);
            button.setCompoundDrawablesWithIntrinsicBounds(0x7f02002b, 0, 0, 0);
            c1.b = ((c)button.getTag()).b;
        }
        c c2 = new cls_c();
        c2.a = (new StringBuilder()).append(c1.a).append("mark").toString();
        imageview = (ImageView)CustomListViewActivity.q(a).findViewWithTag(c2);
        if(imageview != null)
            imageview.setVisibility(8);
          goto _L8
_L9:
        cls_CustomListViewActivity.h(a).b(c1.b).a(aa.b);
_L5:
        return;
_L8:
        if(button == null && imageview == null) goto _L5; else goto _L9
    }

    public void d(int i, int j, String s)
    {
        if(com.nnee.p_pr.p_activity.cls_CustomListViewActivity.p(a).contains(new Integer(i)))
        {
            com.nnee.p_pr.p_activity.cls_CustomListViewActivity.p(a).remove(new Integer(i));
            dc.a(com.nnee.p_pr.p_activity.cls_CustomListViewActivity.d(a), j);
        }
    }

    public void e(int i, int j, String s)
    {
        if(com.nnee.p_pr.p_activity.cls_CustomListViewActivity.p(a).contains(new Integer(i)))
        {
            com.nnee.p_pr.p_activity.cls_CustomListViewActivity.p(a).remove(new Integer(i));
            dc.a(com.nnee.p_pr.p_activity.cls_CustomListViewActivity.d(a), j);
        }
    }

    public void f(int i, cls_d d1)
    {
        if(!com.nnee.p_pr.p_activity.cls_CustomListViewActivity.p(a).contains(new Integer(i))) goto _L2; else goto _L1
_L1:
        com.nnee.p_pr.p_activity.cls_CustomListViewActivity.p(a).remove(new Integer(i));
        if(d1.h.size() <= 0) goto _L4; else goto _L3
_L3:
        Toast.makeText(com.nnee.p_pr.p_activity.cls_CustomListViewActivity.d(a), 0x7f0a0076, 0).show();
_L2:
        if(d1.h.size() > 0) goto _L6; else goto _L5
_L4:
        if(d1.i.size() <= 0) goto _L2; else goto _L7
_L7:
        Toast.makeText(com.nnee.p_pr.p_activity.cls_CustomListViewActivity.d(a), ((r)d1.i.getFirst()).e(), 0).show();
          goto _L5
        NullPointerException nullpointerexception;
        nullpointerexception;
        nullpointerexception.printStackTrace();
          goto _L5
_L6:
        cls_c c1;
        Button button;
        ImageView imageview;
        c1 = new cls_c();
        c1.a = ((u)d1.h.getFirst()).V();
        button = (Button)CustomListViewActivity.q(a).findViewWithTag(c1);
        if(button != null)
        {
            button.setText(0x7f0a0057);
            button.setCompoundDrawablesWithIntrinsicBounds(0x7f02002c, 0, 0, 0);
            c1.b = ((c)button.getTag()).b;
        }
        c c2 = new cls_c();
        c2.a = (new StringBuilder()).append(c1.a).append("mark").toString();
        imageview = (ImageView)CustomListViewActivity.q(a).findViewWithTag(c2);
        if(imageview != null)
            imageview.setVisibility(0);
          goto _L8
_L9:
        cls_CustomListViewActivity.h(a).b(c1.b).a(aa.a);
_L5:
        return;
_L8:
        if(button == null && imageview == null) goto _L5; else goto _L9
    }

    final cls_CustomListViewActivity a;
}
